<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ZaiPuYang</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/jquery.jcrop.css">
    {{--<link rel="stylesheet" href="/css/font-awesome.min.css">--}}
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/style.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/jquery.form.js"></script>
    <script src="/js/jquery.jcrop.min.js"></script>

</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="/">在濮阳</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/">首页</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                @if(Auth::check())
                    <li>
                        <a href="" id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" >
                            {{ Auth::user()->name }}
                        </a>
                        <ul class="dropdown-menu" aria-labelledby="dLabel">
                            <li><a href="/user/avatar"><i class="fa fa-user">更换头像</i></a></li>
                            <li><a href=""><i class="fa fa-cog">更换密码</i></a></li>
                            <li><a href=""><i class="fa fa-heart">特别感谢</i></a></li>
                            <li role="separation" class="divider"></li>
                            <li><a href="/logout"><i class="fa fa-sign-out">退出登录</i></a></li>
                        </ul>
                    </li>


                    <li><img src="{{ Auth::user()->avatar }}" class="img-circle" style="width: 50px;" alt=""></li>
                @else
                <li><a href="/user/login">登录</a></li>
                <li><a href="/user/register">注册</a></li>
                    @endif
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>
@yield('content')

</body>
</html>
